package cn.chousensei.chousenseiblog.dao;

import cn.chousensei.chousenseiblog.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {

    void insert(User user);

    List<User> findAllUser();

    User findByAccountOrAccountId(User user);

    void updateSelective(User user);

    User findByToken(String token);

    User findByUserId(Long userId);
}
